<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['收费管理','订单支付[微信]']" icon="fa fa-list-alt" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<sa-widgets-grid>
		<div class="s_table">
			<div sa-widget [editbutton]="false" color="darken" class="clearfix">
				<header><span class="widget-icon"> <i class="fa fa-table"></i> </span><h2>订单支付[微信]</h2></header>
				<div>
					<div class="widget-body no-padding">
						<div class="page-header clearfix s_table_opreation">
							<div class="left page-header-btn">
								<div class="selectDate top_module">
									<table-select-date [notInit]='true' (outerTime)="getSelectTableTime($event)" ></table-select-date>
								</div>
								<button class="btn btn-primary" (click)="table_search()">查询</button>
							</div>
							<div class="right top-search" style="width: 220px;">
								<input type="text" [(ngModel)]="tableSearch.searchKey" (change)="table_search()" class="search-input" placeholder="订单号、商品名称、商品详情...">
								<span class="top-search-box">
							        <button class="top-search-btn" type="button" (click)="table_search()"> <i class="fa fa-search"></i></button>
							    </span>
							</div>
						</div>
						<div class="table_scroll">
							<table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
								<thead>
									<tr>
										<th>商户订单号</th>
										<th>支付订单号</th>
										<th>商品名称</th>
										<th>商品详情</th>
										<th>商品数量</th>
										<th>单价</th>
										<th>总价</th>
										<th>订单状态</th>
										<th>创建时间</th>
										<th>更新时间</th>
									</tr>
								</thead>
								<tbody>
									<tr *ngFor="let row of tableData" >
										<td>{{row.outTradeNo}}</td>
										<td>{{row.transactionId}}</td>
										<td>{{row.goodsName}}</td>
										<td>{{row.goodsDetails}}</td>
										<td>{{row.count}}</td>
										<td>{{row.unitPrice}}</td>
										<td>{{row.totalPrice}}</td>
										<td>
											<span *ngIf="row.tradeState == 'SUCCESS'">支付成功</span>
											<span *ngIf="row.tradeState == 'REFUND'">转入退款</span>
											<span *ngIf="row.tradeState == 'NOTPAY'">未支付</span>
											<span *ngIf="row.tradeState == 'CLOSED'">已关闭</span>
											<span *ngIf="row.tradeState == 'REVOKED'">已撤销</span>
											<span *ngIf="row.tradeState == 'USERPAYING'">用户支付中</span>
											<span *ngIf="row.tradeState == 'PAYERROR'">支付失败</span>
										</td>
										<td>{{row.createTime}}</td>
										<td>{{row.updateTime}}</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="table-fix clearfix">
							<paginator [totalRecords]="totalCount"
						           [rows]="pageSize"
						           [currentPage]="curPage - 1"
						           (onPageChange)="paginate($event)">
							</paginator>
							<button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</sa-widgets-grid>
</div>